package com.simple.framework.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


/**
 * @Description  用户表(SysUser)表实体类
 * @Author xiaoke
 * @Date 2024/8/10 18:00
 * @Version 1.0
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class SysUser extends BaseUser {
    @TableId(type = IdType.ASSIGN_ID)
    //主键    
    private Long id;
    //部门ID
    private Long deptId;
    //微信Id
    private String openId;
    //密码
    private String password;
    //用户名
    private String username;
    //昵称
    private String name;
    //用户头像
    private String avatar;
    //手机号码
    private String phone;
    //年龄
    private Integer age;
    //城市
    private String city;
    //通讯地址
    private String address;
    //性别(1 男 0 女)
    private Integer sex;
    //状态(1 正常 0 禁用)
    private Integer status;
    //创建者id
    private Long creatorId;
    //创建时间
    private LocalDateTime createTime;
    //更新者Id
    private Long updateId;
    //更新时间
    private LocalDateTime updateTime;
    //删除标志（0代表未删除，1代表已删除
    private Integer delFlag;
    //最后登录IP
    private String loginIp;
    //最后登录时间
    private LocalDateTime loginDate;
    //备注
    private String remark;
}

